class Test{
  constructor(){
    this.a = "Hello world"
  }
}

let test = new Test();
document.body.innerHTML=test.a;